Skip to content

feat: vote program complete#387

Merged
HealthyBuilder merged 1 commit intosolana-foundation:mainfrom
sonicfromnewyoke:sonic/feat-vote-program-complete
Apr 16, 2026
Merged

feat: vote program complete#387
HealthyBuilder merged 1 commit intosolana-foundation:mainfrom
sonicfromnewyoke:sonic/feat-vote-program-complete

Conversation

@sonicfromnewyoke
Copy link
Copy Markdown
Contributor

Problem

vote program implementation covered only a small subset of ixns, and three of those were stubs with TODO comments and no data fields - they would silently produce wrong bytes if used.
on-chain state types were entirely missing, so vote accounts returned from RPC couldn't be decoded.
also, there were no tests, this made the vote package effectively unusable for reading account state or submitting anything beyond a basic withdraw.

Summary of Changes

  • added all the missing ixns
  • fixed 3 stub ixns (InitializeAccount, Authorize, Vote)
  • added state data types
  • added on-chain state decoding

@HealthyBuilder
Copy link
Copy Markdown
Collaborator

Merging — fixes broken instruction stubs and completes the vote program. This unblocks Mithril from using the official SDK.

@HealthyBuilder HealthyBuilder merged commit 173d7f4 into solana-foundation:main Apr 16, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants